package com.lz.ovuola.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * 个人生理周期基本信息
 * 
 * @author fz
 *
 */
@Table(name = "physiological_basis", uniqueConstraints = { @UniqueConstraint(columnNames = { "id" }) })
@Entity(name = "physiologicalBasisDo")
public class PhysiologicalBasisDo extends BaseDo {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6672920153858284380L;
	@Id
	@GeneratedValue
	private Integer id;
	/**
	 * 用户id
	 */
	@Column(name = "user_id")
	private Integer userId;

	/**
	 * 生理周期长度
	 */
	@Column(name = "physiological_length")
	private Integer physiologicalLength;
	/**
	 * 例假期长度
	 */
	@Column(name = "menstruation_length")
	private Integer menstruationLength;
	/**
	 * 生理浮动天数
	 */
	@Column(name = "cycle_floating_days")
	private Integer cycleFloatingDays;

	/**
	 * 本次生理周期例假开始日期
	 */
	@Column(name = "start_time")
	private Date startTime;
	/**
	 * 本次生理周期例假结束日期
	 */
	@Column(name = "end_time")
	private Date endTime;

	/**
	 * 例假期历史
	 */
	@Column(name = "menstruation_history")
	private String menstruationHistory;
	@Column(name = "create_time")
	private Date createTime;
	@Column(name = "update_time")
	private Date updateTime;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getPhysiologicalLength() {
		return physiologicalLength;
	}

	public void setPhysiologicalLength(Integer physiologicalLength) {
		this.physiologicalLength = physiologicalLength;
	}

	public Integer getMenstruationLength() {
		return menstruationLength;
	}

	public void setMenstruationLength(Integer menstruationLength) {
		this.menstruationLength = menstruationLength;
	}

	public Integer getCycleFloatingDays() {
		return cycleFloatingDays;
	}

	public void setCycleFloatingDays(Integer cycleFloatingDays) {
		this.cycleFloatingDays = cycleFloatingDays;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getMenstruationHistory() {
		return menstruationHistory;
	}

	public void setMenstruationHistory(String menstruationHistory) {
		this.menstruationHistory = menstruationHistory;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
